export  const setLocal = (key,value) =>{
   if(typeof  value  == 'object') {
    value= JSON.stringify(value); //将json  转化为字富串
   }
   localStorage.setItem(key,value);
}

export  const getLocal = (key) =>{
   return  localStorage.getItem(key);
 }
 